package week10;

import java.util.ArrayList;
import java.util.List;

public class Main4 {

	public static void main(String[] args) {
		List<Integer> list = new ArrayList<>();
		for(int i =0;i<6;i++)
		{
			list.add(i);
		}
		System.out.println(list);
		for(int i =0 ;i<list.size();i++)
		{
			if(list.get(i)<6)
			list.remove(i);
			i--;
			System.out.println(list);
		}
		
	
	}

}
